/* Playlist container and title styling */
.playlist-container {
    text-align: center;
}

.playlist-title {
    margin-top: 20px;
    margin-left: 30px; /* 调整左边距以对齐左侧 */
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
    text-align: left; /* 确保文字左对齐 */
}


/* Playlist categories styling */
.playlist-categories {
    display: flex;
    justify-content: start;
    margin-left: 30px;
    margin-top: 15px;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-item {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.category-item:hover {
    color: #9fabf0;
}

.category-item.selected {
    background-color: #9fabf0;
    color: #fff;
}

/* Playlist frame styling */
.playlist-frame {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    justify-content: center;
    padding: 0 30px;
}

/* Playlist card styling */
.playlist-card {
    position: relative;
    width: 230px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: whitesmoke;
    background: linear-gradient(to right, #33343a, #4a333b);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.playlist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: filter 0.3s ease;
}

.playlist-card:hover img {
    filter: brightness(70%);
}

/* Play logo overlay */
.play-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    padding: 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Playlist info styling */
.playlist-info {
    margin-top: 10px;
    text-align: center;
}

/* Updated playlist count styling to match listens2 style */
.playlist-count {
    position: absolute;
    color: #e7e9f0;
    bottom: 5px;
    width: 80px;
    right: 5px;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 3px 5px;
    text-align: center;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.playlist-name {
    font-size: 16px;
    color: #e7e9f0;
    font-weight: bold;
}

.playlist-creator {
    font-size: 14px;
    color: #c3c4cc;
}
